import request from '@/utils/request'

export function deteteProduct(data){
  return request({
      url:'v1/product/delete/by/id',
      method:'post',
      data
  })
}

export function findProduct(data){
    return request({
        url:'v1/product/find',
        method:'post',
        data
    })
  }

  export function getProductInfo(data){
    return request({
        url:'v1/product/get/by/id',
        method:'post',
        data
    })
  }

  export function addProduct(data){
    return request({
        url:'v1/product/add',
        method:'post',
        data
    })
  }

  export function updateProduct(data){
    return request({
        url:'v1/product/update',
        method:'post',
        data
    })
  }

  export function changeProductShow(data){
    return request({
        url:'v1/product/show/update',
        method:'post',
        data
    })
  }
  